package top.maof.book.annotation;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.maof.book.type.HotType;

import java.lang.annotation.*;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@ApiModel("热点注解,用于统计rank数据")
public @interface Hot {
    @ApiModelProperty("bookId的动态表达式")
    String value() default "#id";

    @ApiModelProperty("热点类型")
    HotType type() default HotType.CLICK;

    @ApiModelProperty("热点指数提升或是下降")
    String keepType() default "add";
}
